/* JavaLog - package tracker 
 * 
 * Copyright (C) 2009  Allyson Lima, Diego Pedro, Victor Freire
 * 
 * This program is free software: you can redistribute it and/or modify it under
 * the terms of the GNU General Public License as published by the Free Software 
 * Foundation, either version 3 of the License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
 * PARTICULAR PURPOSE.  See the GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License along with this 
 * program.  If not, see <http://www.gnu.org/licenses/>.
 */
package br.edu.ufcg.ccc.javalog.event;

/** 
 * Event thrown by a headquarters object.
 * @author Allyson Lima, Diego Pedro, Victor Freire
 * @version 01/12/09 
 */
@SuppressWarnings("serial")
public class HeadquartersEvent extends java.util.EventObject {
	private String property;
	
	/**
	 * Returns the property that has been modified.
	 */
	public String getProperty() {
		return property;
	}

	/**
	 * Default event constructor.
	 * @param source who fired the event
	 */
	public HeadquartersEvent(Object source) {
		super(source);
	}
	
	/**
	 * Constructor for property-related events.
	 * @param source who fired the event
	 * @param propertyChanged the property that was modified
	 */
	public HeadquartersEvent(Object source, String propertyChanged) {
		super(source);
		property = propertyChanged;
	}
	
}
